Skip to content

Knowledge and Security say when they were really last refreshed - #825

Merged
nambok merged 1 commit into
mainfrom
knowledge-updated-from-syncs
Nov 24, 2026
Merged

nambok merged 1 commit into
mainfrom
knowledge-updated-from-syncs

Conversation

@nambok

@nambok nambok commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The sources overview's Knowledge row could show a date days old while a knowledge source had synced successfully minutes before. bases::size set the Knowledge base's updated_at to the newest updated_at of the team's knowledge base records, which only changes when a base's settings are edited. It now uses the newest successful source sync (last_success_at) or ready upload across the team's bases, and adds stopped_at when a source's last sync stopped, so the dashboard says so instead of showing an old date.

Auditing the other rows: Security took its time only from findings, so a scan that found nothing new looked stale. It now also counts the scan times on the team's SECURITY_STATE record. Code and Work are live, Infrastructure already counts the account read time (RES_READ#), and Logs counts each finding's updated_at, which every log scan refreshes.

Changes

  • gateway/src/bases.rs
    • knowledge_times: picks the newest successful sync or ready upload (synced items and uploads still processing don't count; sources of deleted bases don't count) and the newest stop of an unpaused source in error. Times compare as times, not strings.
    • Knowledge reads the team's sources and each base's files alongside the bases.
    • Security also reads advisory_polled_at, dependabot_checked_at, osv_synced_at and epss_synced_at.
    • The base view carries stopped_at.

Verification

The Knowledge base's updated_at was the newest time a knowledge base's
settings were edited, so a team whose Confluence source synced minutes ago
read "Updated 12 days ago". It is now the newest successful sync of a
source or ready upload across the team's bases, and stopped_at says when a
source's last sync stopped.

Security took its time only from findings, so a scan that found nothing
new left it looking stale. It now also counts the scan times on the team's
security state record.
@nambok
nambok merged commit 2f980bb into main Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant